package com.dd.cloud.user.mapper.news;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dd.cloud.user.entity.news.NewsInfo;
import com.dd.cloud.user.res.news.NewsInfoPageRes;
import org.apache.ibatis.annotations.Param;

/**
 * @author Lx
 * @version 1.0
 */
public interface NewsInfoMapper extends BaseMapper<NewsInfo> {
    /**
     * 查询消息列表 分页
     *
     * @param iPage
     * @param userId
     * @param userType
     * @param status
     * @return
     */
    IPage<NewsInfoPageRes> queryNewsInfoPage(IPage<?> iPage, @Param("userId") Integer userId, @Param("userType") Integer userType, @Param("status") Integer status);
}
